package org.example.auth.convert;

import org.example.auth.contract.request.RoleRequestForSave;
import org.example.auth.contract.response.RoleResponse;
import org.example.auth.model.entity.Role;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface RoleConvert {

    RoleResponse clone(Role role);

    Role clone(RoleRequestForSave request);

    List<RoleResponse> clone(List<Role> roleList);
}
